home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap06 / DlgDemo2 / DlgDemo2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  899 b   |  46 lines

  1. //***********************************************************************
  2. //
  3. //  DlgDemo2.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     void DoGradientFill (CDC*, CRect*);
  17.     void DoDrawText (CDC*, CRect*);
  18.  
  19. public:
  20.     CMainWindow ();
  21.  
  22. protected:
  23.     afx_msg BOOL OnEraseBkgnd (CDC*);
  24.     afx_msg void OnPaint ();
  25.     afx_msg void OnOptionsExit ();
  26.     afx_msg void OnOptionsAbout ();
  27.  
  28.     DECLARE_MESSAGE_MAP ()
  29. };
  30.  
  31. class CAboutDialog : public CDialog
  32. {
  33. private:
  34.     CRect m_rect;
  35.  
  36. public:
  37.     CAboutDialog (CWnd* pParentWnd = NULL) :
  38.         CDialog (IDD_ABOUTDLG, pParentWnd) {}
  39.  
  40.     virtual BOOL OnInitDialog ();
  41.  
  42. protected:
  43.     afx_msg void OnPaint ();
  44.     DECLARE_MESSAGE_MAP ()
  45. };
  46.